﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 添加供应商产品请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddSupplierProductRequestModel
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        [Required(ErrorMessage = "供应商标识不能为空")]
        public string supplierId { get; set; }

        /// <summary>
        /// 产品分类id
        /// </summary>
        [Required(ErrorMessage = "产品分类标识不能为空")]
        public string classifyId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [Required(ErrorMessage = "产品名称不能为空")]
        public string productName { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [Required(ErrorMessage = "产品编号不能为空")]
        public string productNo { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string specification { get; set; }

        /// <summary>
        /// 标签集合
        /// </summary>
        public List<string> tags { get; set; }

        /// <summary>
        /// 参考价格
        /// </summary>
        public decimal referencePrice { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        public string placeOrigin { get; set; }

        /// <summary>
        /// 产品主图服务器存储路径
        /// </summary>
        public string mainFigure { get; set; }

        /// <summary>
        /// 5张产品副图服务器存储路径集合
        /// </summary>
        public List<string> pictureFilePaths { get; set; }

        /// <summary>
        /// 产品详情
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        public int viewCount { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 启用/禁用,1.启用
        /// </summary>
        public int? enabledMark { get; set; }

    }
}
